import { axios } from '@/utils/request'

export function selectPage(parameter) {
  return axios({
    url: '/coupon/activityProduct/selectPage/' + parameter.pageNum + '/' + parameter.pageSize,
    method: 'post',
    data: parameter
  })
}

export function addOrUpdate(parameter) {
  return axios({
    url: '/coupon/activityProduct/addOrUpdate',
    method: 'post',
    data: parameter
  })
}

export function del(parameter) {
  return axios({
    url: '/coupon/activityProduct/delete/' + parameter,
    method: 'get'
  })
}

export function upActivity(parameter) {
  return axios({
    url: '/coupon/activityProduct/upActivity',
    method: 'post',
    data:parameter
  })
}


export function selectActivityProductByCompanyId(parameter) {
  return axios({
    url: '/coupon/activityProduct/selectActivityProductByCompanyId/' + parameter,
    method: 'get'
  })
}
